<extend name="./public/frame.html"/>
<block name="content">
	<style>
		.layui-form-label{width: 10%;}
		.layui-input-block{margin-left: 12%;}
	</style>
	<h2 style="text-align: center;">平台备案</h2>
	<form class="layui-form layui-form-pane1" method="post" >
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>汽车经营许可证号</label>
			<div class="layui-input-inline">
			  <input type="text" name="licence" value="{$data.licence}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">平台经营许可证编号</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>注册地行政区代码</label>
			<div class="layui-input-inline">
			  <input type="text" name="adminCode" value="{$data.adminCode}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">注册地行政区代码</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>运价类型</label>
			<div class="layui-input-inline">
			  <input type="text" name="transPriceType" value="{$data.transPriceType}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">32字符串</div>
		</div>
	
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;"></i>运价类型类型说明</label>
			<div class="layui-input-inline">
			  <input type="text" name="transPriceNote" value="{$data.transPriceNote}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">1000字符串</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>运价有效期起</label>
			<div class="layui-input-inline">
			  <input type="text" name="transValidStart" value="{$data.transValidStart}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">yyyMMdd</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>运价有效期止</label>
			<div class="layui-input-inline">
			  <input type="text" name="transValidEnd" value="{$data.transValidEnd}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">yyyMMdd</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>起步价</label>
			<div class="layui-input-inline">
			  <input type="text" name="startPrice" value="{$data.startPrice}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">double</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>起步时长</label>
			<div class="layui-input-inline">
			  <input type="text" name="startTimer" value="{$data.startTimer}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">double</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>起步里程</label>
			<div class="layui-input-inline">
			  <input type="text" name="startMile" value="{$data.startMile}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">double</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>计程单价</label>
			<div class="layui-input-inline">
			  <input type="text" name="pricePerMile" value="{$data.pricePerMile}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">double</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>计时单价</label>
			<div class="layui-input-inline">
			  <input type="text" name="pricePerTimer" value="{$data.pricePerTimer}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">double</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>低速计时单价</label>
			<div class="layui-input-inline">
			  <input type="text" name="priceLowSpeed" value="{$data.priceLowSpeed}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">double</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;"></i>远程加价单价</label>
			<div class="layui-input-inline">
			  <input type="text" name="singleAddPrice" value="{$data.singleAddPrice}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">double</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;"></i>远程加价公里</label>
			<div class="layui-input-inline">
			  <input type="text" name="singleAddMile" value="{$data.singleAddMile}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">double</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>是否有效</label>
			<div class="layui-input-inline">
			  <input type="text" name="valid" value="{$data.valid}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">0无效 1有效</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>车辆类型</label>
			<div class="layui-input-inline">
			  <input type="text" name="vehicleType" value="{$data.vehicleType}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">64字符串</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>加价时段起时间1</label>
			<div class="layui-input-inline">
			  <input type="text" name="operMorningStartTime" value="{$data.operMorningStartTime}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">HHmmss</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>加价时段终止时间1</label>
			<div class="layui-input-inline">
			  <input type="text" name="operMorningEndTime" value="{$data.operMorningEndTime}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">HHmmss</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>加价时段时间单价1</label>
			<div class="layui-input-inline">
			  <input type="text" name="periodTimePriceOne" value="{$data.periodTimePriceOne}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">double</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>加价时段里程单价1</label>
			<div class="layui-input-inline">
			  <input type="text" name="periodMilePriceOne" value="{$data.periodMilePriceOne}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">double</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>加价时段起时间2</label>
			<div class="layui-input-inline">
			  <input type="text" name="operNightStartTime" value="{$data.operNightStartTime}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">HHmmss</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>加价时段止时间2</label>
			<div class="layui-input-inline">
			  <input type="text" name="operNightEndTime" value="{$data.operNightEndTime}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">HHmmss</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>加价时时间单价2</label>
			<div class="layui-input-inline">
			  <input type="text" name="peakSingleAddMile" value="{$data.peakSingleAddMile}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">double</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;">*</i>加价时段里程单价2</label>
			<div class="layui-input-inline">
			  <input type="text" name="peakSingleAddPrice" value="{$data.peakSingleAddPrice}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">double</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;"></i>加价时段起时间3</label>
			<div class="layui-input-inline">
			  <input type="text" name="otherPeakStartTime" value="{$data.otherPeakStartTime}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">HHmmss</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;"></i>加价时段止时间3</label>
			<div class="layui-input-inline">
			  <input type="text" name="otherPeakEndTime" value="{$data.otherPeakEndTime}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">HHmmss</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;"></i>加价时段时间单价3</label>
			<div class="layui-input-inline">
			  <input type="text" name="periodTimePriceThree" value="{$data.periodTimePriceThree}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">double</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;"></i>加价时段里程单价3</label>
			<div class="layui-input-inline">
			  <input type="text" name="periodMilePriceThree" value="{$data.periodMilePriceThree}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">double</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;"></i>加价时段起时间4</label>
			<div class="layui-input-inline">
			  <input type="text" name="nightTimeStart" value="{$data.nightTimeStart}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">HHmmss</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;"></i>加价时段止时间4</label>
			<div class="layui-input-inline">
			  <input type="text" name="nightTimeEnd" value="{$data.nightTimeEnd}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">HHmmss</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;"></i>加价时段时间单价4</label>
			<div class="layui-input-inline">
			  <input type="text" name="nightFeeTime" value="{$data.nightFeeTime}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">double</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;"></i>加价时段里程单价4</label>
			<div class="layui-input-inline">
			  <input type="text" name="nightFeeMile" value="{$data.nightFeeMile}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">double</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;"></i>其他加价金额</label>
			<div class="layui-input-inline">
			  <input type="text" name="otherAddPrice" value="{$data.otherAddPrice}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">double</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><i style="color:red;font-size: 28px;vertical-align: bottom;"></i>最低消费</label>
			<div class="layui-input-inline">
			  <input type="text" name="minPrice" value="{$data.minPrice}" class="layui-input">
			</div>
			<div class="layui-form-mid layui-word-aux">double</div>
		</div>


		







		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" layer-submit id="submits">立即提交</button>
	
			</div>
		</div>
	</form>

	<script>
		layui.use(['laydate', 'upload','form'], function () {
			var laydate = layui.laydate
				,upload = layui.upload
				,form = layui.form
			;
			upload.render({
				elem: '#test3'//这个就等同于点击
				,url: '/admin/Upload/base64EncodeImage'
				,before: function(obj){
				
				}
				,done:  function(res){ //上传后的回调
					console.log(res)		
					if(res.status == 1){
						$("#demo3").attr('src',res.base_img);
						$("#legalIdCardPhoto").val(res.base_img);
					
					  
					}else{
						layer.msg(res.msg,{'icon':2});
					}
				},
				error: function(e){
					console.log(e)
				  //layer.msg('上传失败');
				 
				}
			}); 
		
		
		});

	</script>
</block>
